package com.itheima.service01;

import com.itheima.domain.Student;
import com.itheima.mapper01.StudentMapper;
import com.itheima.utils.MyBatisUtils;
import org.junit.Test;

import java.util.List;

public class TestDemo {
    @Test
    public void findAll(){
        StudentMapper mapper = MyBatisUtils.getSqlSession().getMapper(StudentMapper.class);
        List<Student> all = mapper.findAll();
        for (Student student : all) {
            System.out.println(student);
        }


    }


}
